const { mongoose } = require('../module/db')

const Schema = mongoose.Schema

const BusinessType = {
    name: String,
    imgSrc: String,
    price: Number,
    checked: Boolean,
    user_id: {
        type: mongoose.Types.ObjectId,
        ref: "user"
    }
}

const BusinessModel = mongoose.model('business', new Schema(BusinessType), 'business')

module.exports = BusinessModel




